import request from "../http"

// 我的标记的历史记录处理

// 添加
export function addMarkerPointHistory(data) {
  return request({
    method: "post",
    url: "mark/insert",
    data
  })
}
// 批量添加
export function addMarkerPointcalList(data) {
  return request({
    method: "post",
    url: "mark/insertList",
    data
  })
}

// 修改
export function updateMarkerPointHistory(data) {
  return request({
    method: "post",
    url: "mark/update",
    data
  })
}

// 获取历史记录的列表
export function getMarkerPointHistoryList(data = null) {
  return request({
    method: "get",
    url: "mark/select",
    data
  })
}

// 根据id获取该条记录
export function getMarkerPointHistoryById(id) {
  return request({
    method: "get",
    url: "mark/get",
    params: { id }
  })
}

// 删除该条记录
export function deleteMarkerPointHistoryById(id) {
  return request({
    method: "post",
    url: "mark/delete",
    data: { id }
  })
}

// 删除所有数据
export function deleteAll() {
  return request({
    method: "post",
    url: "mark/deleteAll"
  })
}
